package com.yzh.shixiday1.service.impl;

import com.yzh.shixiday1.domain.Vo.UserVo;
import com.yzh.shixiday1.mapper.UserMapper;
import com.yzh.shixiday1.domain.pojo.User;
import com.yzh.shixiday1.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    private final UserMapper usermapper;

    public UserServiceImpl(UserMapper usermapper) {
        this.usermapper = usermapper;
    }


    @Override
    public User SelectUser(Integer id) {
        return  usermapper.SelectUser(id);
    }

    @Override
    public UserVo SelectUserVo(Integer id) {
        return usermapper.SelectVo(id);
    }
}
